package com.kx.user.client;

import com.kx.base.dto.face.FaceDTO;
import com.kx.base.result.R;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.DeleteMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

/**
 * 调用人脸识别子服务的工具类
 * @Author Sun
 * @Date 2021/7/21 21:29
 */
@FeignClient(value = "face-service")
public interface FaceClient {

    @PostMapping("kx/face/save")
    R save(@RequestBody FaceDTO faceDTO);

    @DeleteMapping("kx/face/delete")
    R delete(@RequestBody FaceDTO faceDTO);

    @PostMapping("kx/face/search")
    R search(@RequestBody FaceDTO faceDTO);
}

